﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using webapitest2.Models;

namespace webapitest2.Controllers
{
    /// <summary>
    /// 1213132
    /// </summary>
    public class ValuesController : ApiController
    {
 
        /// <summary>
        /// get方法
        /// </summary>
        /// <returns></returns>
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET api/values/5
        public string Get(int id)
        {
            return "value";
        }

        /// <summary>
        /// 【172.18.7.219】【GCPTransaction】【系统管理】修改账户信息
        /// </summary>
        /// <param name="model">账户信息</param>
        /// <returns></returns>
        [Route("adm/modify"), HttpPost]
        //public Response<Guid> Post([FromBody]string value)
        //{
        //    var response = new Response<Models.Response>();
        //    return response;
            
        //}

        // PUT api/values/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/values/5
        public void Delete(int id)
        {
        }
    }
}

namespace webapitest2.Models
{
    class Response
    {
    }
}